import React, { Component } from 'react';
// import {View,Text,Image,StyleSheet,TouchableHighlight} from 'react-native';

import { createStackNavigator, createAppContainer } from 'react-navigation';

import Home from './components/tabbars/Home'
import My from './components/My'
import MovieList from './components/MovieList'
import App from './App'

import NewsList from './components/news/NewsList'
import NewsInfo from './components/news/NewsInfo'
import Photo from './components/Photo';
import Tester from './components/Tester';


const RootStack = createStackNavigator(
  {
    Home: {
      screen: Home,
    //   navigationOptions: ({navigation}) => ({
    //     header: '首页' //设置页面有无标题
    // })
    },
    MovieList: {
      screen: MovieList,
    },
    Photo: {
      screen: Photo,
    },
    NewsList: {
      screen: NewsList,
    },
    NewsInfo: {
      screen: NewsInfo,
    },
    Tester: {
      screen: Tester,
    },
  },
  {
    initialRouteName: 'Home',
    defaultNavigationOptions: {
      headerStyle: {
        backgroundColor: '#26a2ff',
      },
      headerTintColor: '#fff',
      headerTitleStyle: {
        fontWeight: '800',
      },
    }
  },
 
  
);

const AppContainer = createAppContainer(RootStack);

// export default createAppContainer(RootStack)

export default class Router extends Component{
  render(){
    return <AppContainer />
  }
}

